Skip to content

Actions: Fix FP in envvar injection - #22235

Open
JarLob wants to merge 1 commit into
github:mainfrom
JarLob:fix/actions-envvar-injection-precision
Open

Actions: Fix FP in envvar injection#22235
JarLob wants to merge 1 commit into
github:mainfrom
JarLob:fix/actions-envvar-injection-precision

Conversation

@JarLob

@JarLob JarLob commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 27, 2026 11:09
@JarLob
JarLob requested a review from a team as a code owner July 27, 2026 11:09
@github-actions github-actions Bot added documentation Actions Analysis of GitHub Actions labels Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves environment variable injection precision by correlating untrusted sources with privileged trigger events and excluding newline-safe PR head labels.

Changes:

  • Correlates critical findings with their originating event.
  • Excludes pull request head labels as injection sources.
  • Adds regression fixtures and updates expected results.
Show a summary per file
File Description
EnvVarInjectionMedium.expected Updates generated medium-query expectations.
EnvVarInjectionCritical.expected Updates generated critical-query expectations.
.github/workflows/test4.yml Adds PR head-label regression coverage.
.github/workflows/test18.yml Adds event-correlation regression coverage.
EnvVarInjectionCritical.ql Requires matching source and privilege events.
2026-07-18-envvar-injection-precision.md Documents the precision improvements.
EnvVarInjectionQuery.qll Excludes label sources from taint tracking.

Review details

  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Medium

@JarLob

JarLob commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@redsun82 Could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Actions Analysis of GitHub Actions documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants